package com.hnucm.cooklife.bean.history;

import java.util.List;

public class HistoryData {

    private String msg;
    private int code;
    private List<DataDTO> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        private int dishId;
        private String dishname;
        private String dishdesc;
        private String dishpic;
        private int userid;
        private String username;
        private String icon;
        private String bg;
        private double dishscore;
        private int dishdone;
        private int collect;

        @Override
        public String toString() {
            return "DataDTO{" +
                    "dishId=" + dishId +
                    ", dishname='" + dishname + '\'' +
                    ", dishdesc='" + dishdesc + '\'' +
                    ", dishpic='" + dishpic + '\'' +
                    ", userid=" + userid +
                    ", username='" + username + '\'' +
                    ", icon='" + icon + '\'' +
                    ", bg='" + bg + '\'' +
                    ", dishscore=" + dishscore +
                    ", dishdone=" + dishdone +
                    ", collect=" + collect +
                    '}';
        }

        public double getDishscore() {
            return dishscore;
        }

        public void setDishscore(double dishscore) {
            this.dishscore = dishscore;
        }

        public int getDishdone() {
            return dishdone;
        }

        public void setDishdone(int dishdone) {
            this.dishdone = dishdone;
        }

        public int getDishId() {
            return dishId;
        }

        public void setDishId(int dishId) {
            this.dishId = dishId;
        }

        public String getDishname() {
            return dishname;
        }

        public void setDishname(String dishname) {
            this.dishname = dishname;
        }

        public String getDishdesc() {
            return dishdesc;
        }

        public void setDishdesc(String dishdesc) {
            this.dishdesc = dishdesc;
        }

        public String getDishpic() {
            return dishpic;
        }

        public void setDishpic(String dishpic) {
            this.dishpic = dishpic;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getBg() {
            return bg;
        }

        public void setBg(String bg) {
            this.bg = bg;
        }


        public int getCollect() {
            return collect;
        }

        public void setCollect(int collect) {
            this.collect = collect;
        }
    }
}
